<div class="middle" style="padding-top:10px">
  <div class="bar title_bar"><h4>登录</h4></div>
  <div class="bar body">
    <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
      <dl>
        <dt><%= f.label :name, '用户名' %></dt>
        <dt><%= f.text_field :name, :autofocus => true, 'class' => 'single_line' %></dt>
      </dl>

      <dl>
        <%= f.label :password, '密码' %><br />
        <%= f.password_field :password, 'class' => 'single_line' %>
      </dl>

      <% if devise_mapping.rememberable? -%>
        <dl><%= f.check_box :remember_me %> <%= f.label :remember_me, '记住我' %></dl>
      <% end -%>

      <div><%= f.submit "登录", 'class' => 'button primary form' %></div>
    <% end %>
  </div>
</div>